using System.Diagnostics;

public class SystemLog : ILog
{
    public void Trace(string message)
    {
    }

    public void Trace(string message, params object[] args)
    {
    }

    public void Debug(string message)
    {
    }

    public void Debug(string message, params object[] args)
    {
    }

    public void Warn(string message)
    {
        //if (EventLog.SourceExists("MySource"))
        //    EventLog.CreateEventSource("MeSource", "MyLog");
        //EventLog log = new EventLog();
        //log.Source = "MySource";
        //log.Log = "MyLog";
        //message = string.Format("Warn: {0}", message);
        //log.WriteEntry(message);
    }

    public void Warn(string message, params object[] args)
    {
        //string OutputString = string.Format("{0}: ", message);
        //foreach (object obj in arg)
        //{
        //    OutputString += obj + ", ";
        //}
        //log.Trace(OutputString);
    }

    public void Error(string message)
    {
        //if (EventLog.SourceExists("MySource"))
        //    EventLog.CreateEventSource("MeSource", "MyLog");
        //EventLog log = new EventLog();
        //log.Source = "MySource";
        //log.Log = "MyLog";
        //message = string.Format("Error: {0}", message);
        //log.WriteEntry(message);
    }

    public void Error(string message, params object[] args)
    {
        //string OutputString = string.Format("{0}: ", message);
        //foreach (object obj in arg)
        //{
        //    OutputString += obj + ", ";
        //}
        //log.Trace(OutputString);
    }
}
